package cn.edu.ujn.park.dao;

import java.util.Date;

public class MaintenanceRecord {
    private Integer maintenanceId;

    private Integer equipmentId;

    private Date maintenanceDate;

    private String technicianName;

    private String description;

    private String status;

    private Integer start;

    private Integer rows;

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return "MaintenanceRecord{" +
                "maintenanceId=" + maintenanceId +
                ", equipmentId=" + equipmentId +
                ", maintenanceDate=" + maintenanceDate +
                ", technicianName='" + technicianName + '\'' +
                ", description='" + description + '\'' +
                ", status='" + status + '\'' +
                '}';
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getMaintenanceId() {
        return maintenanceId;
    }

    public void setMaintenanceId(Integer maintenanceId) {
        this.maintenanceId = maintenanceId;
    }

    public Integer getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(Integer equipmentId) {
        this.equipmentId = equipmentId;
    }

    public Date getMaintenanceDate() {
        return maintenanceDate;
    }

    public void setMaintenanceDate(Date maintenanceDate) {
        this.maintenanceDate = maintenanceDate;
    }

    public String getTechnicianName() {
        return technicianName;
    }

    public void setTechnicianName(String technicianName) {
        this.technicianName = technicianName == null ? null : technicianName.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }
}